#ifndef __LED_C
#define __LED_C

#include "include/led.h"

/*************************************
*	
*
*********/
void led_init(void)
{
		led_red(1);
	
		P16F = OUTPUT|PU_EN;					//p16 output down  red
//		P10F = OUTPUT|PU_EN;					//p10 output down  white
//		LedModeCtr(LedOff);
//		led_red(1);
}

void LedModeCtr(LedMode		Mode)
{
		switch(Mode)
		{
				case LowPower:
					led_g(0);
					led_red(1);
					break;
				case MediumPower:
					led_g(0);
					led_red(0);
					break;
				case HighPower:
					led_g(1);
					led_red(0);
					break;
				case LedOff:
					led_g(1);
					led_red(1);
					break;
				default:
					break;
		}
}


#endif

